<%@ page import="com.XiGuaXiaoMe.dao.userDao" %>
<%@ page import="com.XiGuaXiaoMe.entity.Users" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Users user=(Users) request.getAttribute("user1");
    if(user!=null&&user.getPassword()!=null)
    {
        System.out.println(user.getUserName3());
        System.out.println(user.getUserName());
        String mess="同学"+user.getUserName3()+"(︶.̮︶✽)你的密码是： "+user.getPassword()+"  拿去不谢哦~~";

%>
<script type="text/javascript">

     alert("<%=mess%>");
     window.location.href="User_Add.jsp";
    session.setAttribute("user1", null);
</script>

<% }else{%>
<script type="text/javascript">
    document.getElementsByClassName("btn1").onclick=function ()
    {
        alert("∑(っ°Д°;)っ查无此人~~");
    }

</script>
<%
    }
%>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="CSS/findback.css">
</head>
<body>
    <form action="/MyWeb/findServlet" method="get" >
          <input type="text" name="userName" id="na" placeholder="昵称"><%--<img src="" alt="">--%><br>
        <p>3~6个中文字符或数字或字母组合</p><br>
        <input type="text" name="userName3" id="pawd" placeholder="学号"><%--<img src="" alt="">--%><br>
       
        <input type="text" name="" id="pwd" placeholder="确认学号"><%--<img src="" alt="">--%><br>
        <p>请再次填写学号</p>
        <div id="vimg"><div class="kuai"></div><div class="kuai2"></div></div>
        <div class="verify">
            <div id="verify_box">
                <div id="verify_xbox">
                    <div id="btn2">
                        <img class="img" src="${pageContext.request.contextPath}/img/lllllll.png"/>
                    </div>
                </div>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;按住滑块，拖动到合适位置
            </div>
        </div>
       <%-- <h6>请滑动上方滑块验证</h6>--%>
        <input type="text"  id="phone" placeholder="手机号" style="margin-top: 51px;"><%--<img src="" alt="">--%><br>
        <p>请填写正确的手机号</p><br>
        <input type="text"  id="yzm" placeholder="手机验证码" maxlength="6"><br>
        <p>请填写手机验证码，不区分大小写</p>
        <button id="btn" style="
    top: 317px;">获取验证码</button>
        <input type="submit" class="btn1" value="获取密码">
    </form>


    <script src="JS/slide.js"></script>
    <script src="JS/findback.js"></script>
</body>
</html>